package ma.cdm.compteRenduVO;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;

public class EntiteVO  implements Externalizable, Serializable {

	private String nom;
	private String adresse;
	private String lieu;
	private String societe;
	private String code;
	private String type;
	private PersonneVO responsable;
	
	public EntiteVO() {
		super();
	}
	public EntiteVO(String nom, String adresse, String lieu, String societe,
			String code, PersonneVO responsable,String type) {
		super();
		this.nom = nom;
		this.adresse = adresse;
		this.lieu = lieu;
		this.societe = societe;
		this.code = code;
		this.responsable = responsable;
		this.type = type;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getAdresse() {
		return adresse;
	}
	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}
	public String getLieu() {
		return lieu;
	}
	public void setLieu(String lieu) {
		this.lieu = lieu;
	}
	public String getSociete() {
		return societe;
	}
	public void setSociete(String societe) {
		this.societe = societe;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public PersonneVO getResponsable() {
		return responsable;
	}
	public void setResponsable(PersonneVO responsable) {
		this.responsable = responsable;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void readExternal(ObjectInput input) throws IOException,
	ClassNotFoundException {
		adresse =(String) input.readObject()  ;
        code =(String)  input.readObject() ;
        lieu = (String) input.readObject() ;
        nom = (String) input.readObject() ;
        responsable = (PersonneVO) input.readObject()  ;
        societe =(String)  input.readObject();
        type =(String)  input.readObject(); 
	}
	public void writeExternal(ObjectOutput output) throws IOException {
		  output.writeObject(adresse);
          output.writeObject(code);
          output.writeObject(lieu);
          output.writeObject(nom);
          output.writeObject(responsable);
          output.writeObject(societe);
          output.writeObject(type);
	}
}
